<?php
/**
 * The template for displaying the footer.
 * @package AGILSUN
 * @author Mr.Hao <haonguyen.agilsun@gmail.com>
 */

if( !defined('HTML_MODE') )
	define('HTML_MODE', (!empty($_GET['htmlmode']) ? '.min' : '') );

global $sTemplateURL;

$options = get_option( 'agilsun_theme_options' );

?>

	<!-- begin footer -->
    <footer>
        <ul>
            <li class="top-footer">
                <section class="container">
                    <ul class="row">
                        <li class="col-md-6 contact">
                            <p class="lien-he">Liên Hệ</p>
                            <?php echo $options['contactinfo']; ?>
                        </li>
                        <li class="col-md-6 social-menu">
                            <p class="group"> <a href="skype:<?php echo $options['skype']; ?>?chat" target="_blank"><span class="sprite skype"></span></a> <a href="<?php echo $options['googlepage']; ?>" target="_blank"><span class="sprite google"></span></a> <a href="<?php echo $options['facebookpage']; ?>" target="_blank"><span class="sprite fb"></span></a> <a href="<?php echo $options['twitterpage']; ?>" target="_blank"><span class="sprite bird"></span></a> </p>
                            <ul class="nav nav-pills navbar-right footer-nav">
                                <?php
									wp_nav_menu( array(
										'theme_location' => 'footer-menu',
										'container' => false,
										'container_class' => false, 
										'menu_class' => '',
										'container_id' => '',
										'link_before' => '',
										'link_after' => '',
										'items_wrap' => '%3$s',
										'fallback_cb' => 'wp_page_menu')
									);
								?>
                            </ul>
                        </li>
                    </ul>
                </section>
                <!-- end section.container --> 
            </li>
            <li class="copyright">
                <section class="container">
                    <p><?php echo $options['copyright']; ?></p>
                </section>
                <!-- end section.container --> 
            </li>
        </ul>
    </footer>
    <!-- end footer --> 
</div>
<!-- end #container --> 

<script src="<?php echo $sTemplateURL; ?>/js/vendor/bootstrap.min.js"></script> 
<script src="<?php echo $sTemplateURL; ?>/js/vendor/modernizr-2.6.2-respond-1.1.0.min.js"></script> 
<script type="text/javascript" src="<?php echo $sTemplateURL; ?>/js/jquery.flexslider-min.js"></script> 
<script src="<?php echo $sTemplateURL; ?>/js/main.js"></script> 
<script>
	var _gaq = [['_setAccount', 'UA-XXXXX-X'], ['_trackPageview']];
	(function(d, t) {
		var g = d.createElement(t), s = d.getElementsByTagName(t)[0];
		g.src = '//www.google-analytics.com/ga.js';
		s.parentNode.insertBefore(g, s)
	}(document, 'script'));
</script>

<?php wp_footer(); ?>
</body>
</html>